<?php
class InterviewScoresModel extends Model {
	  function allOrder(){
	  	return $this->query("select a.name,b.* from ts_user as a,ts_interview_scores as b where a.id = b.uid order by b.scores desc limit 10");
	  }
	  
	  function friendsOrder($friends){
	  	return $this->query("select a.name,b.* from ts_user as a,ts_interview_scores as b where a.id = b.uid and a.id in (".$friends.") order by b.scores desc limit 10");
	  }
}
?>